home *** CD-ROM | disk | FTP | other *** search
- var tl = this;
- showButton = function(overlayObj)
- {
- var waitIntID;
- gotoButtonState(1);
- if(overlayObj.showDelay != 0)
- {
- if(overlayObj.delayFirstViewOnly != true)
- {
- if(overlayObj.showDelay > 0)
- {
- trace("wait to show the delay (" + overlayObj.showDelay + ") - do this every time");
- waitIntID = setInterval(gotoButtonState,overlayObj.showDelay * 1000,overlayObj.button);
- Tardis.OverlayController.setObjProperty("buttonShowIntID",waitIntID);
- }
- return undefined;
- }
- if(Tardis.UsageData.FirstTime == true)
- {
- if(overlayObj.showDelay > 0)
- {
- trace("wait to show the delay (" + overlayObj.showDelay + ") - do this first time only");
- waitIntID = setInterval(gotoButtonState,overlayObj.showDelay * 1000,overlayObj.button);
- Tardis.OverlayController.setObjProperty("buttonShowIntID",waitIntID);
- }
- return undefined;
- }
- }
- gotoButtonState(overlayObj.button);
- };
- gotoButtonState = function(btn)
- {
- Tardis.OverlayController.clearSkipOrEnterIntID();
- tl.gotoAndStop(btn);
- };
-